cmake_minimum_required(VERSION 3.9)

set(BASE_FILES
        cm_debug_out.c
        cm_debug_out.h
        cm_fifo.c
        cm_fifo.h
        cm_flash_cfg.c
        cm_flash_cfg.h
        cm_local_debug.c
        cm_local_debug.h
        cm_suspend.c
        cm_suspend.h
        cm_sys.c
        cm_sys.h
        cm_uart.c
        cm_uart.h
        cm_uart_ex.cpp
        cm_uart_ex.h
        cm_wifi.c
        cm_wifi.h
        )

add_library(misc STATIC ${BASE_FILES})
